<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>色子</title>
    <style type="text/css">

        [class$='face']{
            background-color: #e7e7e7;
            margin: 16px;
            padding: 4px;
            width: 104px;
            height: 104px;
            box-shadow: inset 0 5px white,
            inset 0 -5px #bbb,
            inset 5px 0 #d7d7d7,
            inset -5px 0 #d7d7d7;
            border-radius: 10%;

        }


        .first-face {
            display: flex;
            flex-flow: row wrap;
            align-items: center;
            justify-content: center;

        }

        .second-face {
            display: flex;
            flex-flow: row wrap;
            justify-content:space-between;
        }
        .second-face .pip:nth-of-type(2){
            align-self: flex-end;
        }

        .third-face{
            display: flex;
            flex-flow: row wrap;
            justify-content:space-between;
        }
        .third-face .pip:nth-of-type(2){
              align-self: center;
          }
        .third-face .pip:nth-of-type(3){
            align-self: flex-end;
        }

        .fourth-face{
            display: flex;
            flex-flow: row wrap;
            justify-content: space-between;

        }
        .fourth-face .column{
            display: flex;
            flex-flow: column ;
            justify-content: space-between;

        }
        .pip {
            height: 24px;
            width: 24px;
            background: black;
            margin: 4px;
            border-radius: 50%;
        }
    </style>
</head>
<body>
<div class="first-face">
    <span class="pip"></span>
</div>

<div class="second-face">
    <span class="pip"></span>
    <span class="pip"></span>
</div>

<div class="third-face">
    <span class="pip"></span>
    <span class="pip"></span>
    <span class="pip"></span>
</div>

<div class="fourth-face">
    <div class="column">
        <span class="pip"></span>
        <span class="pip"></span>
    </div>
    <div class="column">
        <span class="pip"></span>
        <span class="pip"></span>
    </div>
</div>

</body>
</html>